{include file="public/same_header" /}

<!-- 右侧的开始 -->
<div class="right_bar jianchajilu">
    {include file="public/go_back" /}
<div class="jcjl_detail">
<div class="top_dec">
    <div>
        <span class="theme">{$breadcrumb}</span>
        <em  class="btn-permission" data-url="record/get_xls_from_record"><a target="_blank" href="{:url('record/get_xls_from_record')}">数据导出</a></em>
    </div>
</div>
<div class="data">
    <form action="" method="get" >
<div class="search_box">
    <!-- 开始日期 -->
    <div class="date_box start_date">
        <script type="text/javascript">
            $(function(){
                $('.end_date_picker').date_input();
            })
        </script>
        <div style="">
            <input  name="start" value="{$search['start']?? ''}"  type="text" class="end_date_picker"  id="start_date">
        </div>
        <script>
            //创建一个当前日期对象
            var now = new Date();
            //格式化日，如果小于9，前面补0
            var day = ("0" + now.getDate()).slice(-2);
            //格式化月，如果小于9，前面补0
            var month = ("0" + (now.getMonth() + 1)).slice(-2);
            //拼装完整日期格式
            var today = now.getFullYear()+"-"+(month)+"-"+(day) ;
            //完成赋值
           // $('#start_date').val(today);
        </script>
    </div>
    <!-- 开始的日期结束 -->

    <!-- 结束日期 -->
    <div class="date_box end_date">
        <script type="text/javascript">
            $(function(){
                $('.end_date_picker').date_input();
            })
        </script>
        <div style="">
            <input name="end"  value="{$search['end']?? ''}"   type="text" class="end_date_picker" id="end_date">
        </div>
        <script>
            //创建一个当前日期对象
            var now = new Date();
            //格式化日，如果小于9，前面补0
            var day = ("0" + now.getDate()).slice(-2);
            //格式化月，如果小于9，前面补0
            var month = ("0" + (now.getMonth() + 1)).slice(-2);
            //拼装完整日期格式
            var today = now.getFullYear()+"-"+(month)+"-"+(day) ;
            //完成赋值
           // $('#end_date').val(today);
        </script>
    </div>
    <!-- 结束的日期结束 -->
    <!-- 输入  查找姓名 -->
    <div class="search_by_name">
        <input type="text" name="name" value="{$search['name']?? ''}"  placeholder="查找姓名或编号">
       <!-- <input type="button" class="search_btn">-->
    </div>
    <!-- 输入查找的  医生 -->
    <div class="doctor_id">
        <input type="text"  name="doctor" value="{$search['doctor']?? ''}" placeholder="查找录入医生">
       <!-- <input type="button" class="search_btn">-->
    </div>
    <!-- 下面是搜索  -->
    <div class="new_box new_box_type">
        <select name="patient_case_type">
            <option value="" >类型</option>
            {foreach name="case_select" item="vo"}
            <option value="{$vo['id']}" >{$vo['name']}</option>
            {/foreach}
        </select>
    </div>
    <input type="submit" value="搜索" class="sou_btn" style="position: static;width: 80px !important;height: 50px;margin-left: 0;color:#fff;padding: 0;border-radius: 10px;">
</div>
        </form>
<!-- 日历的输入  开始 -->
<div class="r_b_box">
							<span class="r_b">
								<img src="__STATIC__/index/imgs/huakuai.png" alt="">
							</span>
</div>
<!-- 下面的   列表 开始  -->
<div class="liebiao">
    {if condition="!$list->isEmpty()"}
<div class="liebiao_dec">
<div class="liebiao_top">
    <strong class="first">检查编号</strong>
    <strong class="second">姓名</strong>
    <strong class="third">性别</strong>
    <strong class="forth">身份证号</strong>
    <strong class="fifth">年龄</strong>
    <strong class="sixth">类型</strong>
    <strong class="seventh">检查结果</strong>
    <strong class="eight">部位</strong>
    <strong class="nienth">检查时间</strong>
    <strong class="tenth">所属部门</strong>
    <strong class="eleventh">录入医生</strong>
</div>
<ul>
       {foreach $list as $vo}
    <li>
        <a href="{:url('record/check_detail',array('id'=>$vo['id']))}">
							<span class="first">
								<em>{$vo['case_num']}</em>
							</span>
							<span class="second">
								<em>{$vo['patient_name']}</em>
							</span>
							<span class="third">
								<em>{$vo['sex']|get_sex_str}</em>
							</span>
							<span class="forth">
								<em>{$vo['document_num']}</em>
							</span>
							<span class="fifth">
								<em>{$vo['birth']|getAge}</em>
							</span>
							<span class="sixth">
								<em>{$vo['patient_case_type']}</em>
							</span>
							<span class="seventh">
								{$vo['check_result']}
							</span>
							<span class="eight">
								<em>  {foreach name="$vo['patient_part_lat']" item="svo"}
                                    {$svo['part'] ?? ''}/{$svo['lat']?? ''}
                                    <br>
                                    {/foreach}</em>
							</span>
							<span class="nienth">
								{$vo['check_time']}
							</span>
							<span class="tenth">
								{$vo['department_name']}
							</span>
							<span class="eleventh">
								<em>{$vo['doctor_name']}</em>
							</span>
        </a>
    </li>
    {/foreach}


</ul>
</div>
    {else/}
        暂无记录
    {/if}
</div>
<!-- 列表的结束 -->
    {include file="public/page" /}

</div>
</div>
</div>
<!-- 右侧的结束 -->
</div>
</div>

{include file="public/footer" /}

